require.config({
    baseUrl:'public',
    paths: {
        jquery: 'js/jquery.min',
        layui: '../../../assets/layui/layui',
        feedback: 'js/feedback'
    },
    shim: {
        feedback:['jquery','layui']
    }
});

var pageType = document.getElementById('pageType');
if(pageType){
    switch (pageType.value){
        case 'feedback':
            require(['jquery','feedback'],function ($) {
                $.feedback.init()
            });
            break;
        default :
            console.log("未知模块")
    }
}
